﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using BPM.Service;
using BPM.Entity;

namespace WebTest.Services
{
	public class ServiceTestBase<TService, TEntity> : TestBase
		where TEntity : BaseEntity, new()
		where TService : ServiceBase<TEntity>, new()
	{
		public new static void InitializeApplication()
		{
			TestBase.InitializeApplication();
		}

		public override void TestInitialize()
		{
			base.TestInitialize();
			this._svc = new TService();
		}

		public override void TestCleanup()
		{
			base.TestCleanup();
			this._svc = null;
		}

		protected TService _svc;
	}
}
